package cn.edu.sdjzu.xg11.service;

import java.util.Collection;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.edu.sdjzu.xg11.dao.TeacherDao;
import cn.edu.sdjzu.xg11.domain.Teacher;

@Service
public class TeacherService {
	@Autowired
	private TeacherDao teacherDao;

	public Collection<Teacher> getTeachers(){
		return teacherDao.getTeachers();
	}
	public void deleteTeacher(Integer id){
		teacherDao.deleteTeacher(id);
	}
	public Teacher getTeacher(Integer id) {
		// TODO Auto-generated method stub
		return teacherDao.getTeacher(id);
	}
	public void addTeacher(Teacher teacher ){
		teacherDao.addTeacher(teacher);
	}
	public void updateTeacher(Teacher teacher) {
		teacherDao.updateTeacher(teacher);		
	}
}
